#pragma once
# include<map>
# include<stdint.h>
#include<arduino.h>
# include "../../ganix/pwm.h"
# include "../global.hpp"
# include "../rpc_handler.hpp"
# include "../pin_list.hpp"

namespace LEDDVR
{
    Esp8266OutputPin sw1(D5, "D5"), sw2(D6, "D6");

    void init() {
        if (!WORKER_IS_LED_LINER) return;
        output_pin_list.push_back(&sw1);
        output_pin_list.push_back(&sw2);

        PinGroup group("LED_GROUP");
        group.add_member(&sw1);
        group.add_member(&sw2);
        output_pin_group.push_back(group);

        Serial.println(WORKER_NAME + " inited. In led_driver.hpp.");
    }
} // namespace LEDDVR
